/**
 * @author Ivan Holub
 */
class Song {

    String title
    String lyrics
    Artist artist

    static belongsTo = [artist:Artist]

    static constraints = {
        title(nullable:false, blank: false)
        lyrics(nullable:false, blank: false)
    }

    static mapping = {
        lyrics type: 'text'
    }

}
